﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x02000096 RID: 150
	public class TCreateRoleStmt : TCustomSqlStatement
	{
		// Token: 0x0600044B RID: 1099 RVA: 0x002FB1C6 File Offset: 0x002F93C6
		public void setRoleName(TObjectName roleName)
		{
			this.roleName = roleName;
		}

		// Token: 0x0600044C RID: 1100 RVA: 0x002FB1CF File Offset: 0x002F93CF
		public TObjectName getRoleName()
		{
			return this.roleName;
		}

		// Token: 0x0600044D RID: 1101 RVA: 0x002FB1D7 File Offset: 0x002F93D7
		public TCreateRoleStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstcreaterole;
		}

		// Token: 0x0600044E RID: 1102 RVA: 0x002FB1EC File Offset: 0x002F93EC
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.roleName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x0600044F RID: 1103 RVA: 0x002FB229 File Offset: 0x002F9429
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000450 RID: 1104 RVA: 0x002FB239 File Offset: 0x002F9439
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x040010ED RID: 4333
		private TObjectName roleName;
	}
}
